//
//  TTUserModel.h
//  ExhibitionHall
//
//  Created by 王洋 on 2019/6/15.
//  Copyright © 2019 王洋. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserInfoModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface TTUserModel : NSObject

+ (TTUserModel *)sharedObject;

//初始化
- (void)configAllUsers;

- (void)clearAllUsers;

- (void)logOut;

- (void)addUserWithDic:(NSMutableDictionary *)userDic;


@property (nonatomic, strong) NSUserDefaults *userModelDefault;

//由登陆成功存入的用户，在初始化的时候获取这个进行赋值
@property(nonatomic,readonly) NSMutableArray *userInfoArray;

//成功登陆的用户们
@property(nonatomic,strong) NSMutableArray <UserInfoModel *>* users;

//选中的用户
@property(nonatomic,strong) UserInfoModel *selectedUser;

@end

NS_ASSUME_NONNULL_END
